/* ***********************************************************************
 * Copyright (C) 1992-- 2016 中国南方航空股份有限公司.
 *
 * Created [2016-09-08 14:47:20] by FMS Team
 * ***********************************************************************
 *
 * mybaits-generator
 * ***********************************************************************
 */
package com.foreveross.law.system.domain;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* <p>com.foreveross.law.system.domain.Menu</p>
*
* @author changwu.liao email:changwu.liao(a)gmail.com
* @version 1.0
* @since 1.0
* @Modified by add modified description
* @purpose add this file description here
*/
public class Menu implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias	
	public static final String TABLE_SQL_NAME = "MENU";
	
	public static final String ALIAS_MENU_ID = "menuId";
	public static final String ALIAS_ROLE_NAME = "roleName";
	public static final String ALIAS_PARENT_MENU_ID = "parentMenuId";
	public static final String ALIAS_REMARK = "remark";
	
	//the column is a primary key	
	public static final String PROP_KEY = "menuId";
	
	
		
	//fields START
	public static String PROP_REF="Menu";
	public static String PROP_REF_MENU_ID = "menuId";
	
	public static String PROP_REF_ROLE_NAME = "roleName";
	
	public static String PROP_REF_PARENT_MENU_ID = "parentMenuId";
	
	public static String PROP_REF_REMARK = "remark";
	
	//fields END
	
	//columns sql name START	
	public static String PROP_COLUMN_MENU_ID = "MENU_ID";
	public static String PROP_COLUMN_ROLE_NAME = "ROLE_NAME";
	public static String PROP_COLUMN_PARENT_MENU_ID = "PARENT_MENU_ID";
	public static String PROP_COLUMN_REMARK = "REMARK";
	//columns sql name END
		
	//columns START
	private java.lang.String menuId;
	private java.lang.String roleName;
	private java.lang.String parentMenuId;
	private java.lang.String remark;
	//columns END

	public Menu(){
	}

	public Menu(
		java.lang.String menuId
	){
		this.menuId = menuId;
	}

	public void setMenuId(java.lang.String value) {
		this.menuId = value;
	}
	
	public java.lang.String getMenuId() {
		return this.menuId;
	}
	public void setRoleName(java.lang.String value) {
		this.roleName = value;
	}
	
	public java.lang.String getRoleName() {
		return this.roleName;
	}
	public void setParentMenuId(java.lang.String value) {
		this.parentMenuId = value;
	}
	
	public java.lang.String getParentMenuId() {
		return this.parentMenuId;
	}
	public void setRemark(java.lang.String value) {
		this.remark = value;
	}
	
	public java.lang.String getRemark() {
		return this.remark;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("MenuId",getMenuId())
			.append("RoleName",getRoleName())
			.append("ParentMenuId",getParentMenuId())
			.append("Remark",getRemark())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getMenuId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof Menu == false) return false;
		if(this == obj) return true;
		Menu other = (Menu)obj;
		return new EqualsBuilder()
			.append(getMenuId(),other.getMenuId())
			.isEquals();
	}
}

